import { useIntl } from 'umi';
import { GithubOutlined,CoffeeOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';

export default () => {
  const intl = useIntl();
  const defaultMessage = intl.formatMessage({
    id: 'app.copyright.produced',
    defaultMessage: '蚂蚁集团体验技术部出品',
  });

  const currentYear = new Date().getFullYear();

  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'Ant Design Pro',
          title: <><CoffeeOutlined />Lazy刚的茶馆（个人博客）</>,
          href: 'https://lazygang.fun',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <><GithubOutlined />项目git地址（腾讯工蜂）</>,
          href: 'https://git.code.tencent.com/unify/unified/2528d662a9a51c2c38318ebe8cc881079f4a334cecc6ad6cec890dd359d94e30?strict=true',
          blankTarget: true,
        },
        {
          key: 'Ant Design',
          title: 'Ant Design Vue Crm(该项目基于Vue的实现)',
          href: 'https://ant.design',
          blankTarget: true,
        },
      ]}
    />
  );
};
